/*
 * @Author: zhang ke
 * @Date: 2025-06-27 14:45:54
 * @LastEditors: your name
 * @LastEditTime: 2025-06-27 18:08:04
 * @Description: 属性管理的ts类型
 * @FilePath: \vue3-admin\src\api\product\attr\type.ts
 */
export interface ResponseData{
    code:number,
    message:string,
    ok:boolean
}

export interface CategoryObj{
    id:number|string,
    name:string,
    category1Id?:number,
    category2Id?:number,
}

export interface CategoryResponseData extends ResponseData{
    data:CategoryObj[]
}

export interface AttrValue{
    id?:number,
    valueName:string,
    attrId?:number,
    flag?:boolean
}

export type AttrValueList = AttrValue[]

export interface Attr{
    id?:number,
    attrName:string,
    categoryId:number|string,
    categoryLevel:number,
    attrValueList:AttrValueList
}
export type AttrList = Attr

export interface AttrResponseData extends ResponseData{
    data:Attr[]
}
